package com.lanqiao.companymanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanqiao.companymanage.entity.AssetInformation;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 何小棍
 * 资产信息管理与添加
 */
@Mapper
public interface AssetMessMapper extends BaseMapper<AssetInformation> {
    /**
     * 分页查询
     */
    Page<AssetInformation> selectPageAssetMess(Page<AssetInformation> assetMessPage);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    AssetInformation selectByIdAssetMess(Integer id);

    /**
     * 插入关联表
     * @param ai_id
     * @param am_id
     */
    void insertAssetTea(Integer ai_id, Integer am_id);

    /**
     * 删除关联表
     * @param id
     */
    void deleteAssetTea(Integer id);
}
